import { createStore } from 'vuex'
import cart from './modules/cart.js'
import user from './modules/user.js'
import createPersistedState from 'vuex-persistedstate'
// vuex的 persistedstate 持久化存储

export default createStore({
	modules:{
		cart,
		user
	},
	pulgins:[createPersistedState()]
})


